
<div>评论区</div>
{loop $replys $reply}
<div>
    <div>
        <div>
            {$reply['nickname']}
            {if !$reply['uid']}
            <span>游客</span>
            {else}
            <span>会员</span>
            {/if}
        </div>
        <div>{$reply['add_time']}</div>
    </div>
    <div>{$reply['content']}</div>
</div>
{/loop}

<form method="post">
    <div>
        {php $editor->create()}
    </div>
    <div>
        {if !$user}
        <label>您的昵称：</label>
        <input type="text" name="nickname" value="{$user['nickname']}" />
        {/if}
        <button type="submit" name="do" value="reply"><i></i> 发表</button>
    </div>
</form>